package com.venusj.dubbo.consumer;

import com.venusj.dubbo.service.api.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @author venusj
 * @date 2020/12/6
 */
@Component
public class ConsumerComponent {
    @Reference(loadbalance = "random")
    private HelloService helloService;

    public String sayHello(String name) {
        return helloService.sayHello(name);
    }
}
